home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 0022-3.564 / dmg-0081 / info89 / 857.txt < prev    next >
Text File  |  1997-04-16  |  12KB  |  297 lines

  1. =========================================================================
  2.  
  3. INFO-ATARI16 Digest         Sun, 24 Dec 89       Volume 89 : Issue  857
  4.  
  5. Today's Topics:
  6.                            awk port for ST
  7.              Comparing Apple and Atari peripheral prices
  8.                         LHARC source and UNIX
  9.                            program editors
  10.                      Public Apology to Dave Small
  11.                              spreadsheets
  12. ----------------------------------------------------------------------
  13.  
  14. Date: 24 Dec 89 17:53:01 GMT
  15. From: ogicse!blake!ramsiri@ucsd.edu  (Enartloc Nhoj)
  16. Subject: awk port for ST
  17. Message-ID: <5152@blake.acs.washington.edu>
  18.  
  19. I grabbed awk.ttp from the net many months back..
  20. and have used it successfully for string matching
  21. and manipulation...
  22.  
  23. Last night i wrote a couple of quick dot.g scripts
  24. in gulam using awk to produce some quick reports
  25. for my student records which included integer addition.
  26. The scripts are very straight forward with a simple loop.
  27. I am not sure if the problem is in the conditional or what.
  28.  
  29. Here are the two awk scripts:
  30.  
  31. due.awk
  32. -------
  33.  
  34.  
  35. BEGIN   ?  FS = "\t"
  36.            printf("%-15s %4s \n\n", "STUDENT", "DUE")
  37.         ?
  38.         ?  printf("%-15s %4d \n", $1, $2)
  39.            total = total + $2
  40.         ?
  41. END     ? printf("\n-%15s %4d \n", "TOTAL DUE" , total) ?
  42.  
  43.  
  44. owe.awk
  45. -------
  46.  
  47.  
  48. BEGIN   ?  FS = "\t"
  49.            printf("%-15s %4s \n\n", "STUDENT", "OWED") ?
  50.         ?
  51.            if ( $2 > $3 ) ?
  52.              printf("%-15s %4d\n", $1, $2 - $3 )
  53.              total = total + ($2 - $3)
  54.             ?
  55.          ?
  56. END      ?  printf("\n%-15s %4d \n", "TOTAL DUE", total) ?
  57.  
  58.  
  59. If I pass a file such as this to the awk scripts:
  60.  
  61.  
  62. Abdul   125     0       15      60      weird
  63. Nadily  100     0       15      72      gorgeous
  64. Mark    125     0       15      12      no comment
  65. ....
  66. etc
  67.  
  68.  
  69. Where field $2 is the amount DUE and $3 is amount PAID...
  70.  
  71. I should get the same results with both due.awk and owe.awk.
  72. On the ST, owe.awk yields a total that is greater by
  73. a value equal to the first line $2 field.  I inserted
  74. print statements to find the error..  I thought i was
  75. not understanding the way awk searches for patterns on
  76. a line by line basis... but when i uploaded it to BSD..
  77. it worked straight forward and gave correct results.
  78.  
  79. IS there a problem(s) with AWK.TTP , or am i misunderstanding
  80. something in my code?  I'd much rather be able to write
  81. short dot.g scripts for quick things like this than have
  82. to compile C code or open a spread sheet etc..
  83.  
  84. Thanks ..
  85.  
  86. -kevin
  87. ramsiri@blake.acs.washington.edu
  88.  
  89. ------------------------------
  90.  
  91. Date: 25 Dec 89 02:23:52 GMT
  92. From: rochester!rit!ultb!clf3678@rutgers.edu  (C.L. Freemesser)
  93. Subject: Comparing Apple and Atari peripheral prices
  94. Message-ID: <1831@ultb.isc.rit.edu>
  95.  
  96. In article <8912210835.AA07308@ucbvax.Berkeley.EDU> MBERNAR@ERENJ.BITNET (mb)
  97.  writes:
  98. >In a discussion on unexpandable mega ST's, kclenden@silver.bacs.indiana.edu
  99. >Kevin Clendenien states that Apple computers (he
  100. >also mentioned another brand) need Apple peripherals and that they cost much
  101. >more than Atari ST peripherals.  I don't know if you've looked at the Apple
  102. >side of things lately, but this just isn't true.
  103.  
  104. Yes it is....
  105.  
  106. >First of all, Apple computers (specifically Mac's) don't need to use Apple
  107. >peripherals.  Maybe you're not aware that there are more third party peripheral
  108. >suppliers for Macs than for ST.  Just look in any Mac specific magazine
  109. >and you'll be surprised to find how many brands of hard disks (internal and
  110. >external), back-up tape drives, graphics display cards and monitors and
  111. >floppy drives are available for the Mac.   There are also alternatives to
  112. >Apple Laserwriter and Imagewriter.
  113.  
  114. Find a 3rd party Apple floppy drive that is totally compatible with the
  115. Apple drives, and I'll show you a snowball that survived a trip through
  116. hell....
  117.  
  118. Sure there are alternatives to the Imagewriter, but the I-writer is the
  119. most used.  Ergo, it is the most supported by software.
  120.  
  121. >Second point.  Apple peripherals from third party suppliers are priced
  122. >at least the same as Atari ST peripherals.  In some cases, they are even
  123. >cheaper on the Mac than on the ST.  For example, look at hard drive prices.
  124.  
  125. Let us not forget that the Mac has the SCSI board ST users need built
  126. in.  For the IIgs and other Apples, you spend $120 for this board.
  127.  
  128. >Quantum has an ad for a 20 Meg hard disk for $499 (Atari Explorer).  You could
  129. >buy a larger drive for the Mac for the same price (Cutting Edge: 20 Meg - $439.
  130. >30 Meg - $499).  External floppy drive for the ST costs $149 (this is the
  131. >cheapest I've seen).  An equivalent Mac floppy drive costs the same.  Of course
  132. >memory is also cheaper on the Mac.
  133.  
  134. Tell that to my friend who bought a new 3.5 inch Apple drive.  The
  135. retail price is $400!  I spent about $100 building one for myself.  As
  136. for hard disks, I built one for my father's 1040...a 20 meg Seagate,
  137. Adaptek, and ICD host adapter for $350.  Beat that on a Mac.
  138.  
  139. >It seems to me that the only thing cheaper on the Atari ST is the computer
  140. >itself. I have a bare 1040STF at home and a new Mac IIci with loads of stuff
  141. >at work.
  142.  
  143. No kidding.  Atari planned it to be less expensive.
  144.  
  145. In my little bits of hardware hacking on the ST, I've found it to be a
  146. VERY versatile computer.  I can add IBM drives, generic power supplies
  147. (as this Lambda 12A supply shows....my drives are connected to it too),
  148. and joe-schmo printers and modems.  I have STANDARD ports for these.
  149. The Mac has those dopey 8-pin Apple plugs.  I can even open up my ST.
  150. That damn Mac has those recessed Torx screws.  PLUS, I can have color
  151. AND monochrome on my machine.
  152.  
  153.  
  154. Chris Freemesser, Rochester Institute of Technology :BITNET:%clf3678@RITVAX
  155.     |||        ____________                         :GEnie: C.FREEMESSER
  156.     |||       /___    /          (and 8-bit too!)   :USENET: clf3678@rit.isc
  157.    / | \   ______/   /                              :        .edu
  158. Call the A.C.O.R.N BBS (716)436-3078, 300/1200 baud :<-or my BBS
  159.  
  160. ------------------------------
  161.  
  162. Date: 24 Dec 89 15:10:07 GMT
  163. From: cs.dal.ca!silvert@uunet.uu.net  (Bill Silvert)
  164. Subject: LHARC source and UNIX
  165. Message-ID: <1989Dec24.151007.28665@cs.dal.ca>
  166.  
  167. In article <10429@stag.math.lsa.umich.edu> hyc@math.lsa.umich.edu (Howard Chu)
  168.  writes:
  169. >In article <51989@ccicpg.UUCP> paulm@ccicpg.UUCP (tmp Paul Moreau usenet acct)
  170.  writes:
  171. >>Well it seems that the LHARC is going to take over the atari archiving
  172. >>world.  I for one use a UNIX system for posting and recieving news
  173. >>and binaries.   I uudecode, and unarc on the unix system and examine
  174. >>the stuff before going through the expense of going home, making a
  175. >>LONG DISTANCE call to work and download the stuff.  If LHARC is to be
  176. >>the new standard (which I can see the benefit in smaller archives) I'd
  177. >>like to get the source so I can port it to our UNIX system.
  178. >>If the source is protected (which it seems to be) then I don't think
  179. >>I'll be downloading any more files unless I know what to expect in them.
  180.  
  181. >I have the source for LHARC. I haven't bothered doing anything with it yet.
  182. >It's 80% 8086 assembler. Even the C source code is full of ASM compiler
  183. >directives. Most of the comments are in Japanese, for a Kanji character
  184. >set, and show up as weird diacriticals on an ST display. I doubt any
  185. >printer would like them very much.
  186.  
  187. I strongly support Moreau's call for a Unix version.  I run a BBS on a
  188. Unix system with archives on a PC with a huge drive.  Both zoo and arc
  189. formats are supported by all three OS's, but LHARC is creating lots of
  190. problems for me.  It should not be used for a group like this unless it
  191. can run on all machines through which the code is likely to pass.
  192.  
  193. --
  194. Bill Silvert, Habitat Ecology Division.
  195. Bedford Institute of Oceanography, Dartmouth, NS, Canada B2Y 4A2
  196.         UUCP: ...!?uunet,watmath?!dalcs!biomel!bill
  197.         Internet: biomel@cs.dal.CA      BITNET: bs%dalcs@dalac.BITNET
  198.  
  199. ------------------------------
  200.  
  201. Date: 24 Dec 89 15:04:13 GMT
  202. From: cs.dal.ca!silvert@uunet.uu.net  (Bill Silvert)
  203. Subject: program editors
  204. Message-ID: <1989Dec24.150413.28500@cs.dal.ca>
  205.  
  206. In article <=&?QF%@masalla.fulcrum.bt.co.uk> chrisl@fulcrum.bt.co.uk (Chris
  207.  Parkin Lilley) writes:
  208. >In article <25120@cup.portal.com> smolin@cup.portal.com (Steve Jacob Molin)
  209.  writes:
  210. >>Has anyone done the editor vi on the ST?
  211.  
  212. >       Yes. It's called Stevie (ST VI?).
  213.  
  214. I was unable to respond to the original posting, but there are several
  215. vi's for the ST.  In addition to STevie, I have a vi clone that came (I
  216. think) in a large package of Unix-style utilities.
  217.  
  218. I can't get mail through to Molin, but the uuencoded file is available
  219. from ...!dalcs!biomel!bill if you can reach it.
  220.  
  221. --
  222. Bill Silvert, Habitat Ecology Division.
  223. Bedford Institute of Oceanography, Dartmouth, NS, Canada B2Y 4A2
  224.         UUCP: ...!?uunet,watmath?!dalcs!biomel!bill
  225.         Internet: biomel@cs.dal.CA      BITNET: bs%dalcs@dalac.BITNET
  226.  
  227. ------------------------------
  228.  
  229. Date: 24 Dec 89 18:12:59 GMT
  230. From: crash!canada@nosc.mil  (Diane Barlow Close)
  231. Subject: Public Apology to Dave Small
  232. Message-ID: <980@crash.cts.com>
  233.  
  234. Apology to Dave Small
  235.  
  236. It has come to my attention that some people have associated my
  237. remarks about the GEnie-Usenet link with the character of Dave
  238. Small.  This was never my intention.  The GEnie-Usenet link and
  239. Dave Small and his company, Gadgets By Small, are completely
  240. different entities and should not be lumped together.  What you
  241. may think of the link definitely should not change your opinion
  242. of Dave or Gadgets.  I feel that Dave Small and Gadgets By Small
  243. are invaluable to the Atari and Usenet communities and are very,
  244. very generous.
  245.  
  246. Dave gives away a great deal of information, goods, and services
  247. to the Atari and Usenet communities and Dave should be valued and
  248. praised for his commitments and achievements.  Dave has
  249. contributed greatly to the Atari community in the true hacker
  250. spirit, and it is unfortunate that GEnie's handling of the link
  251. cast the shadow of doubt on this.  I am now informed that Dave
  252. was not aware that any representative of GEnie would try to
  253. copyright Usenet material.  If he had been aware, he would have
  254. never implemented the link.
  255.  
  256. I regret the personal distress that my posting (and the various
  257. responses it generated) has caused Dave Small.  I ask all of you
  258. who took the time to write Dave to oppose the link, now write him
  259. showing your support and appreciation of Dave, personally, and of
  260. Gadgets.
  261. --
  262. Diane Barlow Close
  263.       ?nosc, ucsd?!crash!canada
  264.       canada@crash.cts.com
  265.       Free Canada -- Trade Mulroney
  266.  
  267. ------------------------------
  268.  
  269. Date: 24 Dec 89 15:00:08 GMT
  270. From: cs.dal.ca!silvert@uunet.uu.net  (Bill Silvert)
  271. Subject: spreadsheets
  272. Message-ID: <1989Dec24.150008.28420@cs.dal.ca>
  273.  
  274. In article <20245@kuhub.cc.ukans.edu> SHAWL@kuhub.cc.ukans.edu writes:
  275. >> ... VIP Professional. It's lousy. I hate it. Please don't recommend
  276. >> it. I mean, a piece of software with a list price of 130 quid that can't work
  277. >> with a hard disk?
  278.  
  279. >YOU ARE WRONG.  In spite of its problems, VIP is useful; i use it almost
  280. >daily --- FROM MY HARD DRIVE.  It is easy to set up.
  281.  
  282. I missed the first posting, but VIP works fine with a hard drive.
  283. There are two versions, a Lotus look-a-like and a GEM version.
  284. GEM is a bit slow unless you use a speedup program for fast screen
  285. updates, but I use VIP all the time to handle Lotus files.  It's good.
  286.  
  287. --
  288. Bill Silvert, Habitat Ecology Division.
  289. Bedford Institute of Oceanography, Dartmouth, NS, Canada B2Y 4A2
  290.         UUCP: ...!?uunet,watmath?!dalcs!biomel!bill
  291.         Internet: biomel@cs.dal.CA      BITNET: bs%dalcs@dalac.BITNET
  292.  
  293. ------------------------------
  294.  
  295. End of INFO-ATARI16 Digest V89 Issue #857
  296. *****************************************
  297.